#include<iostream>
using namespace std;

class Date
{
public:
	Date(int year = 1, int month = 1, int day = 1);
	void Print()
	{
		cout << _year << " " << _month << " " << _day << " " << endl;
	}

	Date(const Date& d)
	{
		cout << "&&&&" << endl;
		_year = d._year;
		_month = d._month;
		_day = d._day;
	}
	bool operator<(const Date& x)
	{
		if (_year < x._year)
			return true;
		else if (_year == x._year && _month < x._month)
			return true;
		else if (_year == x._year && _month == x._month && _day < x._day)
			return true;
		return false;
	}
	Date& operator=(const Date& d)
	{
		if (this != &d)
		{
			_year = d._year;
			_month = d._month;
			_day = d._day;
		}
		return *this;
	}
private:
	int _year;
	int _month;
	int _day;
};

int main()
{
	Date d1, d2, d3, d4;
	d1 = d2;
	return 0;
}
